package com.buba.service.impl;

import com.buba.dao.UserInfoMapper;
import com.buba.pojo.UserInfo;
import com.buba.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author 杨柳
 * @title UserInfoServiceImpl
 * @date 2024/4/24 9:43
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public List<UserInfo> selUserInfoAll() {
        return userInfoMapper.selUserInfoAll();
    }

    @Override
    public long selCount(Map<String, Object> map) {
        return userInfoMapper.selCount(map);
    }

    @Override
    public List<UserInfo> selUserInfo(Map<String, Object> map) {
        return userInfoMapper.selUserInfo(map);
    }

    @Override
    public long delUserInfo(String userId) {
        return userInfoMapper.delUserInfo(userId);
    }

    @Override
    public long addUserInfo(Map<String, Object> map) {
        return userInfoMapper.addUserInfo(map);
    }

    @Override
    public long updUserInfo(Map<String, Object> map) {
        return userInfoMapper.updUserInfo(map);
    }
}
